class HomeController < ApplicationController
  layout nil
  def index
    @title = "首页"
    
    @remd_clothes = Item.valid_items.recommend_item(1, 1, 16)
    @remd_pants = Item.valid_items.recommend_item(2, 1, 16)    
    
    @hot_keyword_clothes = RecommendItem.find_all_by_recommend_type_and_flag(1, 2)
    @hot_keyword_pants = RecommendItem.find_all_by_recommend_type_and_flag(2, 2)
    @special_price= Item.valid_items.recommend_item(3, 1, 6)
  end
  def home
    @remd_clothes = Item.valid_items.recommend_item(1, 1, 16)
  end

end
